package com.hzw.saas.api.app.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zzl
 * @since 03/29/2021
 */
@ApiModel("应用心跳")
@Data
@Accessors(chain = true)
public class AppHeartbeat {

    @ApiModelProperty(value = "当前服务器时间, format=yyyyMMddHHmmss", position = 18)
    @DateTimeFormat(pattern = PatternConsts.PURE_DATETIME_PATTERN)
    @JsonFormat(pattern = PatternConsts.PURE_DATETIME_PATTERN)
    private Date time;

}
